package org.NooLab.glue.components;

import java.util.Observer;

import org.NooLab.utilities.objects.StringedObjects;

import org.NooLab.glue.MessageBoard;
import org.NooLab.glue.msgframe.XMessage;
import org.NooLab.glue.msgframe.XRegistration;
import org.NooLab.glue.net.ComBox;
import org.NooLab.glue.net.ComBoxIntf;
import org.NooLab.glue.net.sockets.udp.UdpDataSender;
import org.NooLab.glue.transaction.Transaction;





public abstract class DataConnectorAbs implements DataConnectorIntf,
												  Observer{

	// =================================

	public static final int CNX_AVAIL = 1;
	public static final int CNX_BUSY  = 6;
	public static final int CNX_OFF   = 9;
	
	
	// object references ..............
	
	protected MessageBoardFactory mbf ;
	
	protected XMessage xMessage ;
	
	protected ComBox comBox ;
	
	 
	DataSenderIntf sender ;
	protected DataReceiverIntf receiver ;
	
	protected MessageBoard msgboard; 
	
	protected Transaction mirrTransaction;

	 
	
	StringedObjects stringedObj = new StringedObjects();
	
	
	
	public DataConnectorAbs( MessageBoardFactory mbf, XRegistration xreg ){
		xMessage = new XMessage( mbf.out ) ;
		this.mbf = mbf;
		comBox = mbf.comBoxFactory.getComBox() ;
	}
	

	
	
	
}
